//
//  ZCAlertViewController.h
//  3H
//
//  Created by ZhiChengFengRun on 2017/8/8.
//  Copyright © 2017年 ZhiChengFengRun. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ZCAlertAction : NSObject

+ (instancetype)actionWithTitle:(NSString *)title handler:(void (^)(ZCAlertAction *action))handler;

@property (nonatomic, readonly) NSString *title;

@end



@interface ZCAlertViewController : UIViewController

@property (nonatomic, readonly) NSArray<ZCAlertAction *> *actions;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *message;
@property (nonatomic, assign) NSTextAlignment messageAlignment;

+ (instancetype)alertControllerWithTitle:(NSString *)title message:(NSString *)message;
- (void)addAction:(ZCAlertAction *)action;


@end
